/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CU020.java
 *
 * Created on 03/11/2012, 12:56:46
 */

package victory;

/**
 *
 * @author Enrique
 */
public class CU020 extends javax.swing.JPanel {

    /** Creates new form CU020 */
    public CU020() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        boton_mostrarFixture = new javax.swing.JButton();
        boton_generarFixture = new javax.swing.JButton();
        boton_volver = new javax.swing.JButton();
        boton_listarParticipantes = new javax.swing.JButton();
        boton_mostrarTabla = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        label_nombreCompetencia = new javax.swing.JLabel();
        label_modalidadCompetencia = new javax.swing.JLabel();
        label_deportesAsociados = new javax.swing.JLabel();
        label_estado = new javax.swing.JLabel();
        label_participante = new javax.swing.JLabel();
        label_proximosEncuentros = new javax.swing.JLabel();
        nombreCompetencia = new javax.swing.JTextField();
        modalidadCompetencia = new javax.swing.JTextField();
        estado = new javax.swing.JTextField();
        scp_deportesAsociados = new javax.swing.JScrollPane();
        lista_deportesAsociados = new javax.swing.JList();
        scp_proximosEncuentros = new javax.swing.JScrollPane();
        tabla_proximosEncuentros = new javax.swing.JTable();
        boton_eliminar = new javax.swing.JButton();
        boton_modificar = new javax.swing.JButton();
        scp_participante = new javax.swing.JScrollPane();
        lista_participantes = new javax.swing.JList();
        jLabel2 = new javax.swing.JLabel();

        boton_mostrarFixture.setText("Mostrar Fixture");

        boton_generarFixture.setText("Generar Fixture");

        boton_volver.setText("Volver");

        boton_listarParticipantes.setText("Listar Participantes");

        boton_mostrarTabla.setText("Mostrar Tabla");
        boton_mostrarTabla.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_mostrarTablaActionPerformed(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Visualuzación de la Competencia", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        label_nombreCompetencia.setText("Nombre de la Competencia");

        label_modalidadCompetencia.setText("Modalidad de la Competencia");

        label_deportesAsociados.setText("Deportes Asociados");

        label_estado.setText("Estado");

        label_participante.setText("Participantes");

        label_proximosEncuentros.setText("Próximos Encuentros");

        nombreCompetencia.setEditable(false);
        nombreCompetencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nombreCompetenciaActionPerformed(evt);
            }
        });

        modalidadCompetencia.setEditable(false);

        estado.setEditable(false);

        lista_deportesAsociados.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Basket", "Futbol", "Hockey", "Rugby" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        scp_deportesAsociados.setViewportView(lista_deportesAsociados);

        tabla_proximosEncuentros.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Participante 1", "Participante 2", "Lugar de Realizacion", "Fecha"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        scp_proximosEncuentros.setViewportView(tabla_proximosEncuentros);

        boton_eliminar.setText("Eliminar");

        boton_modificar.setText("Modificar");

        lista_participantes.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Participante 1", "Participante 2", "Participante 3", "Participante 4", "Participante 5", "Participante 6" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        scp_participante.setViewportView(lista_participantes);

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel1Layout.createSequentialGroup()
                        .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(label_modalidadCompetencia)
                            .add(label_estado)
                            .add(label_nombreCompetencia)
                            .add(label_proximosEncuentros))
                        .add(18, 18, 18)
                        .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel1Layout.createSequentialGroup()
                                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                        .add(modalidadCompetencia)
                                        .add(estado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 118, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .add(nombreCompetencia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 118, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(39, 39, 39)
                                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(label_deportesAsociados)
                                    .add(label_participante))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(scp_participante)
                                    .add(scp_deportesAsociados, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 109, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(0, 0, Short.MAX_VALUE))
                            .add(scp_proximosEncuentros, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()
                        .add(0, 374, Short.MAX_VALUE)
                        .add(boton_modificar)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(boton_eliminar)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(19, 19, 19)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(jPanel1Layout.createSequentialGroup()
                        .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(label_nombreCompetencia)
                            .add(nombreCompetencia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(label_participante))
                        .add(18, 18, 18)
                        .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(label_modalidadCompetencia)
                            .add(modalidadCompetencia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(scp_participante, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .add(18, 18, 18)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(label_estado)
                        .add(estado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(label_deportesAsociados)
                    .add(scp_deportesAsociados, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 52, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(16, 16, 16)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(scp_proximosEncuentros, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 105, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(label_proximosEncuentros))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(boton_eliminar)
                    .add(boton_modificar))
                .addContainerGap())
        );

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabel2.setText("Ver Competencia");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, boton_volver)
                    .add(layout.createSequentialGroup()
                        .add(boton_generarFixture)
                        .add(18, 18, 18)
                        .add(boton_mostrarFixture)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 86, Short.MAX_VALUE)
                        .add(boton_mostrarTabla)
                        .add(18, 18, 18)
                        .add(boton_listarParticipantes))
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel2))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .add(24, 24, 24)
                .add(jLabel2)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 32, Short.MAX_VALUE)
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(boton_listarParticipantes)
                    .add(boton_mostrarTabla)
                    .add(boton_mostrarFixture)
                    .add(boton_generarFixture))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(boton_volver)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void nombreCompetenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nombreCompetenciaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nombreCompetenciaActionPerformed

    private void boton_mostrarTablaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_mostrarTablaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_boton_mostrarTablaActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_eliminar;
    private javax.swing.JButton boton_generarFixture;
    private javax.swing.JButton boton_listarParticipantes;
    private javax.swing.JButton boton_modificar;
    private javax.swing.JButton boton_mostrarFixture;
    private javax.swing.JButton boton_mostrarTabla;
    private javax.swing.JButton boton_volver;
    private javax.swing.JTextField estado;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel label_deportesAsociados;
    private javax.swing.JLabel label_estado;
    private javax.swing.JLabel label_modalidadCompetencia;
    private javax.swing.JLabel label_nombreCompetencia;
    private javax.swing.JLabel label_participante;
    private javax.swing.JLabel label_proximosEncuentros;
    private javax.swing.JList lista_deportesAsociados;
    private javax.swing.JList lista_participantes;
    private javax.swing.JTextField modalidadCompetencia;
    private javax.swing.JTextField nombreCompetencia;
    private javax.swing.JScrollPane scp_deportesAsociados;
    private javax.swing.JScrollPane scp_participante;
    private javax.swing.JScrollPane scp_proximosEncuentros;
    private javax.swing.JTable tabla_proximosEncuentros;
    // End of variables declaration//GEN-END:variables

}
